"""
-*- coding: utf-8 -*-
@Author  : Link
@Time    : 2022/11/25 22:28
@Site    : 
@File    : bus_code.py
@Software: PyCharm
@Remark  : 
"""
import collections


class SltWrite:
    pass


class BusCode:
    BASE = 0x1000

    FLOW_SEND_MAIN_READ = BASE | 0x121
    MAIN_SEND_FLOW_READ = BASE | 0x122

    TCP_SEND_MAIN_READ = BASE | 0x131
    MAIN_SEND_TCP_READ = BASE | 0x132

    SLT_SEND_MAIN_READ = BASE | 0x141
    MAIN_SEND_SLT_READ = BASE | 0x142

    ALARM_TO_OP = BASE | 0x201

    # 内部状态
    RunStart = BASE | 0x501
    RunStop = BASE | 0x502

    # Lot状态
    PerLotStart = BASE | 0x601
    PerWaferStart = BASE | 0x602
    PostLotStop = BASE | 0x606

    CloseAll = BASE | 0x901  # 关闭所有线程, 程序退出
